import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'logic.dart';
import 'state.dart';

class AppSelectAddressPage extends StatefulWidget {
  @override
  _AppSelectAddressPageState createState() => _AppSelectAddressPageState();
}

class _AppSelectAddressPageState extends State<AppSelectAddressPage> with SingleTickerProviderStateMixin {
  TabController _tabController; //需要定义一个Controller
  final AppSelectAddressLogic logic = Get.put(AppSelectAddressLogic());
  final AppSelectAddressState state = Get.find<AppSelectAddressLogic>().state;

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    _tabController =
        TabController(length: state.tabBarTitles.length, vsync: this);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('添加收货地址'),
          centerTitle: true,
        ),
      // body: ,

    );
  }
}
